<template>
  <div class="about">
    <h1>This is an about page</h1>
    <h2>{{ $route.query }}</h2>
    <button @click="backBtnClick">返回</button>
  </div>
</template>
<script setup>
import { useRouter } from "vue-router";
const router = useRouter();
function backBtnClick() {
  // 返回
  // router.back()
  // 向前
  // router.forward()

  // go(delta)
  // go(1)->forward()
  // go(-1)->-back()
  router.go(1);
}
</script>
